package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 售后-故障单(AfterSalesMalfunction)表实体类
 *
 * @author yxy
 * @since 2024-10-22 19:23:09
 */
@Data
@ApiModel("售后-故障单")
@TableName(value = "tb_after_sales_malfunction")
public class AfterSalesMalfunction extends Model<AfterSalesMalfunction> implements Serializable {
    private static final long serialVersionUID = 201839673294124640L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("故障处理人员")
    private Long userId;

    @ApiModelProperty("设备id")
    private Long deviceId;


    @ApiModelProperty("商家id")
    private Long merchantId;

    @ApiModelProperty("设备名称")
    @TableField(exist = false)
    private String deviceName;
    @ApiModelProperty("商家名称")
    @TableField(exist = false)
    private String merchantName;
    @ApiModelProperty("故障处理人员名称")
    @TableField(exist = false)
    private String userName;
    @ApiModelProperty("项目名称")
    @TableField(exist = false)
    private String itemName;
    @ApiModelProperty("项目id")
    private Long itemId;


    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("状态 0未处理 1已完成 2已过期")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建日期")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;
    @ApiModelProperty("故障类型0损坏 1保养")
    private Integer malfunctionType;


    @ApiModelProperty("保修单号")
    private String malfunctionNo;

    @ApiModelProperty("类型0设备 1商品服务")
    private Integer type;

    @ApiModelProperty("处理方法")
    private String method;
    @ApiModelProperty("图片")
    private String img;
    @ApiModelProperty("描述")
    private String strDescribe;
    @ApiModelProperty("备注")
    private String remark;
}
